#define ENA 11
#define IN2 10
#define IN1 9

void peltierInit(){
    pinMode(ENA, OUTPUT); 
    pinMode(IN1, OUTPUT); 
    pinMode(IN2, OUTPUT);      
}



void peltierControl(int setPoint, int actual){
    if (setPoint == 0){
        digitalWrite(ENA, LOW);
    } else {
        analogWrite(ENA, setPoint);
        digitalWrite(IN1, HIGH);
        digitalWrite(IN2, LOW);        
    }
    
}

